home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !preview / GFtoXY / h / mf < prev   
Encoding:
Text File  |  1989-02-03  |  817 b   |  26 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. /* General routines and things */
  5. #define true    1               /* Pascal constants */
  6. #define false   0
  7. #define null                    /* Empty statement inserted by pxp */
  8. #define chr(c)  (c)             /* These three are easy */
  9. #define round(f)        ((int) (f + (f >= 0 ? 0.5 : -0.5)))
  10. #define ord(c)  (c)
  11. #define eof(f)  feof(f)
  12. #define odd(x)  ((x) & 1)       /* Assuming x is an integer, which it is */
  13. #define free    free_array      /* Avoid conflict with free/malloc */
  14. typedef int     integer;        /* Emulate Pascal types */
  15. typedef int     boolean;
  16. typedef double  real;
  17. #define maxint  (1<<30)
  18.  
  19. /* I/O */
  20. /* Read is only used on byte (ascii/binary) files */
  21. #define read(f,c)       c=getc(f)
  22. #define inputln         input_ln()
  23.  
  24. /* Forwards/externs */
  25. boolean eoln(FILE *f);
  26.